package com.wanjl.aop.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author WanJl
 * @version 1.0
 * @title ObjectAspect
 * @description
 * @create 2024/11/3
 */
@Component
@Aspect
public class ObjectAspect {
    @Pointcut("execution(* java.lang.Object.*())")
    private void pt(){}

    @Before("pt()")
    public void method(){
        System.out.println("Object前置通知....");
    }
}
